using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;

namespace Liberty.Persistence.Kernel
{
    [Serializable]
    public class ServiceMemberSearchCriteria : AbstractSearchCriteria
    {
        #region Constants

        private const string
            STORED_PROCEDURE_NAME = "ServiceMembersMatchingLastName",
            PARAM_LAST_NAME = "@LastName",
            FORMAT_LAST_NAME = "{0}%";

        #endregion

        #region Event Handlers
        #endregion

        #region Methods
        #endregion

        #region Properties
        #endregion

        #region Private Methods
        #endregion

        #region Private Properties
        #endregion

        #region Construction and Finalization

        public ServiceMemberSearchCriteria( string lastName )
            : base( STORED_PROCEDURE_NAME )
        {
            this.AddParameter( PARAM_LAST_NAME, String.Format( FORMAT_LAST_NAME, lastName.Trim() ) );
        }
        #endregion

        #region Data Elements
        #endregion
    }
}
